{% extends 'oratk_app/master.html' %}
{% block title %}
    <meta http-equiv="refresh" content="30">
{% endblock %}
{% block tag_left %}
    {% include 'oratk_app/tag_left_user.html' %}
{% endblock %}
{% block userinfo %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h2 class="page-header">计划任务执行情况</h2>
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                <th style="display: none">id</th>
                <th>任务批次</th>
                <th>任务名称</th>
                <th>监控项</th>
                <th>实例</th>
                <th>sql执行结果/host命令结果</th>
                <th>sql执行异常/host命令异常</th>
                <th>是否有阀值</th>
                <th>阀值</th>
                <th>短信发送情况</th>
                <th>备注</th>
                <th>插入时间</th>
            </tr>
            </thead>
            <tbody id="tab">
            {% for i in current_page %}
                <tr>
                <td style="display: none">{{ i.id }}</td>
                <td>{{ i.task_batch }}</td>
                <td>{{ i.task_name }}</td>
                <td>{{ i.point_name }}</td>
                <td>{{ i.instance }}</td>
                <td>{{ i.sql_result }}</td>
                <td>{{ i.error_msg |default_if_none:""}}</td>
                <td>{{ i.limit_status }}</td>
                <td>{{ i.limit }}{{ i.limit_unit }}</td>
                <td>{{ i.sms_info|default_if_none:"" }}</td>
                <td>{{ i.remake }}</td>
                <td>{{ i.crtime |date:'Y-m-d H:i:s' }}</td>
            {% endfor %}
            </tbody>
        </table>
        {#        以上是分页#}
        {% include 'basic_app/paginator.html' %}
    </div>
{% endblock  %}

